package com.xjtu.project.mapper;

import com.xjtu.project.model.domain.Employee;
import com.xjtu.project.model.domain.Shoe;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xjtu.project.model.dto.ShoeDTO;
import com.xjtu.project.model.dto.ShoeIfDTO;
import com.xjtu.project.model.vo.ShoeCategoryVO;
import com.xjtu.project.model.vo.ShoeCnVO;
import com.xjtu.project.model.vo.ShoeVO;
import dev.langchain4j.agent.tool.P;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 86185
* @description 针对表【shoe】的数据库操作Mapper
* @createDate 2025-07-04 18:26:18
* @Entity com.xjtu.project.model.domain.Shoe
*/
public interface ShoeMapper extends BaseMapper<Shoe> {

    boolean updateByIdMy(@Param("shoe") Shoe shoe);

    boolean addShoeMy(@Param("shoe") ShoeDTO shoe);


    ShoeVO selectByIdMy(@Param("id") Long id);
    List<Shoe> selectByCategoryId(@Param("categoryId") Integer categoryId);
    List<ShoeCategoryVO> selectByCategory();

    boolean updateByStatus(@Param("status") Integer status,@Param("id") Integer id);

    List<Shoe> selectPageQueryMy(@Param("shoe") ShoeIfDTO shoe);

    List<ShoeCnVO> getByCategoryId(Integer categoryId);

    List<ShoeCnVO> getByName(@Param("name") String name);
}




